home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / internet / sweeper / samples / olecon~1 / controls / localize / makefile < prev    next >
Makefile  |  1995-11-30  |  2KB  |  86 lines

  1. #=------------------------------------------------------------------------=
  2. # Makefile    [Localize]
  3. #=------------------------------------------------------------------------=
  4. # Copyright  1995  Microsoft Corporation.  All Rights Reserved.
  5. #
  6. # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
  7. # ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
  8. # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  9. # PARTICULAR PURPOSE.
  10. #=--------------------------------------------------------------------------=
  11. #
  12. # builds a Localize Control
  13. #
  14.  
  15. TARGETOS=BOTH
  16. APPVER=4.0
  17.  
  18. MKDEP=mkdep
  19. MKTYPLIB=mktyplib
  20. VERSIONHDR=dwinvers.h
  21.  
  22. !include <win32.mak>
  23.  
  24. cflags=$(cflags) -Oi
  25.  
  26. !if "$(NODEBUG)"!=""
  27. CTL_LIBS=$(winlibs) ..\..\lib\CTLFWR32.LIB uuid2.lib olepro32.lib ole32.lib oleaut32.lib uuid.lib oldnames.lib
  28. !else
  29. cdebug=$(cdebug) -DDEBUG
  30. CTL_LIBS=$(winlibs) ..\..\lib\CTLFWD32.LIB uuid2.lib olepro32.lib ole32.lib oleaut32.lib uuid.lib oldnames.lib
  31. !endif
  32.  
  33. CONTROLNAME=Localize
  34. OBJS=Guids.Obj\
  35.      $(CONTROLNAME).Obj\
  36.      $(CONTROLNAME)Ctl.Obj\
  37.      $(CONTROLNAME)PPG.Obj\
  38.      $(CONTROLNAME).res
  39.  
  40. all: dep $(CONTROLNAME).OCX
  41.  
  42. $(CONTROLNAME).Ocx: $(VERSIONHDR) $(CONTROLNAME).TLB $(OBJS) makefile
  43.     $(link) $(lflags) $(ldebug) -DLL -entry:DllMain$(DLLENTRY) $(OBJS) -out:$*.ocx $(CTL_LIBS) -def:$(CONTROLNAME).def
  44.  
  45. .cpp.obj:
  46.     $(cc) $(cflags) $(cvars) $(cdebug) -I..\..\Include $<
  47.  
  48. .c.obj:
  49.     $(cc) $(cflags) $(cvars) $(cdebug) -I..\..\Include $<
  50.  
  51. $(CONTROLNAME).TLB : $(CONTROLNAME).ODL
  52.     $(MKTYPLIB) $(_MKTYPLIBFLAGS) -nologo -cpp_opt "/C /E /D__MKTYPLIB__ -nologo" -h $(CONTROLNAME)Interfaces.H -o Errors.LOG -tlb $(CONTROLNAME).TLB $(CONTROLNAME).ODL
  53.  
  54. $(CONTROLNAME).res : $(CONTROLNAME).TLB $(CONTROLNAME).RC
  55.     $(rc) $(rcflags) -fo $(CONTROLNAME).Res $(CONTROLNAME).Rc
  56.  
  57. Dep: $(CONTROLNAME).TLB
  58.     @echo Generating Dependancies
  59.     $(MKDEP) -n -P ./ -I. -I..\..\Include -s .obj *.c* > dep.mak
  60.  
  61. $(VERSIONHDR):
  62.     @echo You should edit this file for your own version information
  63.     copy ..\..\framewrk\$(VERSIONHDR)
  64.     
  65.  
  66. clean: 
  67.     del *.obj
  68.     del *.ocx
  69.     del *.tlb
  70.     del *.res
  71.     del *.exp
  72.     del *.mak
  73.     del *.log
  74.     del *.lib
  75.     del $(CONTROLNAME)Interfaces.h
  76.     del dwinvers.h
  77.  
  78. #=----------------------------=
  79. # Include Dependency Makefile 
  80. #
  81. !IF EXIST(dep.mak)
  82. !include dep.mak
  83. !ENDIF
  84.  
  85.  
  86.